//
//  MBDSettingViewModel.swift
//  MasterBoy
//
//  Created by kyson on 2023/6/13.
//

import Foundation


class MBDSettingViewModel : NSObject {
 
    
    func doWriteOff(completion : @escaping (_ error : NSError?)->()){
        
        MBDHttpClient.shared.request("/user/logout",method: .delete).httpClientResponse { error, response in
            if nil != error {
                completion(error)
            } else {
                completion(nil)
            }
            
        }
    }
}
